package com.base.forum.service;

import java.util.Map;

import com.base.forum.entity.Invitation;
import com.base.kongjian.entity.Reply;
import com.mysteel.page.Page;

public interface InvitationService
{
	/**
	 * 发帖
	 * @param invitation
	 */
	void post(Invitation invitation);
	/**
	 * 删帖
	 * @param id
	 */
	void deletePost(long id);
	/**
	 * 更新
	 * @param invitation
	 */
	void upate(Invitation invitation);
	
	/**
	 * 得到贴
	 * @param id
	 * @return
	 */
	Invitation getById(long id);
	/**
	 * 
	 * @param params
	 * @param currentPageNum
	 * @param maxPageRowCount
	 * @return
	 */
	Page<Invitation> query(Map<String, Object> params, int currentPageNum, int maxPageRowCount);
	
	/**
	 * 回贴
	 * @param reply
	 */
	void Replies(long id, Reply reply);
}
